<?php namespace App\Api\Models;

use Illuminate\Database\Eloquent\Model as Eloquent;
use Log;

class BaseModel extends Eloquent {
    
    protected $TAKE_NUM = 60;
    
    protected $request =null;
    // 验证请求参数格式参数
    public $connection = '';

    // 验证请求参数格式参数
    public function __construct( $request = null) {
        $this->connection = config('app.mysql_connection');
        $this->request = $request;
    }
    //重写模型自动维护时间格式
    protected function getDateFormat(){
        return 'U';
    }
}
